home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Source Code / C / Games / Arashi 1.1.1 / source code / For your think c folder / Misc / LexStuff.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-10-13  |  938 b   |  39 lines  |  [TEXT/MMCC]

  1. /*/
  2.      Project Arashi: LexStuff.h
  3.      Major release: Version 1.1d2, 9/5/95
  4.  
  5.      Last modification: Thursday, October 13, 1994, 16:56
  6.      Created: Saturday, June 25, 1994, 23:59
  7.  
  8.      Copyright © 1994, Juri Munkki
  9. /*/
  10.  
  11. #pragma once
  12.  
  13. #ifndef __LEXSTUFF__
  14. #define __LEXSTUFF__
  15.  
  16. #ifdef powerc
  17. #include <fenv.h>
  18. #include <fp.h>
  19. #else
  20. #include <SANE.h>
  21. #define decimal        Decimal
  22. #ifndef double_t
  23. #define double_t    long double
  24. #endif
  25. #ifndef SIGDIGLEN
  26. #define SIGDIGLEN SigDigLen
  27. #endif
  28. #endif
  29.  
  30. short MatchLongInt(StringPtr theString, long *n);
  31. short MatchDouble(StringPtr theString, double_t *theNumber);
  32. short MatchWhiteSpace(StringPtr theString);
  33. short MatchLine(StringPtr theString);
  34. short UnmatchWhiteSpace(StringPtr theString);
  35. short MatchWhiteLongInt(StringPtr theString, long *n);
  36. short MatchWhiteDouble(StringPtr theString, double_t *theNumber);
  37. short StringToToken(Handle stringList, StringPtr stringStart, short stringLen);
  38.  
  39. #endif